<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<div class="title">
	<s:a href="/admin/restList.html" cssClass="parent fl"><s:text name="admin.restList.title" /></s:a>
	<s:label cssClass="parent fl"  value=">" />
	<s:label cssClass="current fl" key="admin.restEdit.title" />
	<s:a href="/admin/restList.html" cssClass="back fr">[<s:text name="common.button.back" />]</s:a>
	<s:a action="restDelete" cssClass="back pr5 fr">
		[<s:text name="admin.restDelete.title" />]
		<s:param name="restId" value="restId"></s:param>
	</s:a>
	<span class="back pr5 fr">
		[<s:text name="admin.restEdit.title" />]
	</span>
	<div class="clear"></div>
	<hr class="title" />
</div>
<s:form action="/admin/doRestEdit.html" method="post" theme="simple">
	<s:hidden name="restId" />
	<s:token />
	<div class="table">
		<%-- 页面提示信息 --%>
		<div class="row">
			<div class="cell-label"></div>
			<div class="cell-text fieldError h30">
				<s:actionerror />
			</div>
		</div>
		<%-- 餐馆名 --%>
		<div class="row">
			<div class="cell-label">
				<s:label value="*" cssClass="star" />
				<s:text name="admin.restList.restName" />:
			</div>
			<div class="cell-text">
				<s:textfield name="restBean.restName" cssClass="w240" />
			</div>
			<div class="fieldError w300">
				<s:fielderror fieldName="msg.restName" />
			</div>
		</div>
		<%-- 所属域名 --%>
		<div class="row">
			<div class="cell-label">
				<s:label value="*" cssClass="star" />
				<s:text name="admin.restList.serverName" />:
			</div>
			<div class="cell-text">
				<s:textfield name="restBean.serverName" cssClass="w240" />
			</div>
		</div>
		<div class="fieldError w300">
			<s:fielderror fieldName="msg.serverName" />
		</div>
		<%-- 有效期限 --%>
		<div class="row">
			<div class="cell-label">
				<s:label value="*" cssClass="star" />
				<s:text name="admin.restList.expirationDate" />:
			</div>
			<div class="cell-text">
				<s:textfield name="expirationDate" cssClass="w240" />
			</div>
			<div class="fieldError w300">
				<s:fielderror fieldName="msg.expirationDate" />
			</div>
		</div>
		<%-- 餐厅管理员用户名 --%>
		<div class="row">
			<div class="cell-label">
				<s:label value="*" cssClass="star" />
				<s:text name="admin.restList.managerUserName" />:
			</div>
			<div class="cell-text">
				<s:textfield name="userBeanPage.userName" cssStyle="width:240px" disabled="true" />
			</div>
			<div class="fieldError w300">
				<s:fielderror fieldName="msg.userName" />
			</div>
		</div>
		<%-- 餐厅管理员昵称 --%>
		<div class="row">
			<div class="cell-label">
				<s:label value="*" cssClass="star" />
				<s:text name="admin.restList.managerNickName" />:
			</div>
			<div class="cell-text">
				<s:textfield name="userBeanPage.nickName" cssStyle="width:240px" disabled="true" />
			</div>
			<div class="fieldError w300">
				<s:fielderror fieldName="msg.nickName" />
			</div>
		</div>
		<%-- 餐厅经理默认语言 --%>
		<div class="row">
			<div class="cell-label">
				<s:label value="*" cssClass="star" />
				<s:text name="admin.restList.managerDefLang" />:
			</div>
			<div class="cell-text">
				<s:select label="默认语言" name="userBeanPage.defLangId" list="langList" listKey="langId" listValue="description" cssClass="w240" disabled="true" />
			</div>
			<div class="cell-desc"></div>
		</div>
		<%-- 最后更新人 --%>
		<div class="row">
			<div class="cell-label"><s:text name="common.label.updateUser" />:</div>
			<div class="cell-text">
				<s:textfield name="updateUserNickName" cssStyle="width:240px" disabled="true" />
			</div>
		</div>
		<%--最后更新时间 --%>
		<div class="row">
			<div class="cell-label"><s:text name="common.label.updateDate" />:</div>
			<div class="cell-text">
				<s:textfield name="restBean.updateDate" cssStyle="width:240px" disabled="true">
					<s:param name="value"><s:date name="restBean.updateDate" format="%{#request.dateFormat}" /></s:param>
				</s:textfield>
			</div>
		</div>
		<!-- 支持语言 -->
		<s:if test="restBean.langId1 != null && restBean.langId1 != 0">
			<div class="row">
				<div class="cell-label"><s:text name="admin.restList.langId1" />:</div>
				<div class="cell-text">
					<s:select label="默认语言" name="restBean.langId1" list="langList" listKey="langId" listValue="description" cssClass="w240" disabled="true" />
				</div>
				<div class="cell-desc"></div>
			</div>
		</s:if>
		<s:if test="restBean.langId2 != null && restBean.langId2 != 0">
			<div class="row">
				<div class="cell-label"><s:text name="admin.restList.langId2" />:</div>
				<div class="cell-text">
					<s:select label="默认语言" name="restBean.langId2" list="langList" listKey="langId" listValue="description" cssClass="w240" disabled="true" />
				</div>
				<div class="cell-desc"></div>
			</div>
		</s:if>
		<s:if test="restBean.langId3 != null && restBean.langId3 != 0">
			<div class="row">
				<div class="cell-label"><s:text name="admin.restList.langId3" />:</div>
				<div class="cell-text">
					<s:select label="默认语言" name="restBean.langId3" list="langList" listKey="langId" listValue="description" cssClass="w240" disabled="true" />
				</div>
				<div class="cell-desc"></div>
			</div>
		</s:if>
		<s:if test="restBean.langId4 != null && restBean.langId4 != 0">
			<div class="row">
				<div class="cell-label"><s:text name="admin.restList.langId4" />:</div>
				<div class="cell-text">
					<s:select label="默认语言" name="restBean.langId4" list="langList" listKey="langId" listValue="description" cssClass="w240" disabled="true" />
				</div>
				<div class="cell-desc"></div>
			</div>
		</s:if>
		<s:if test="restBean.langId5 != null && restBean.langId5 != 0">
			<div class="row">
				<div class="cell-label"><s:text name="admin.restList.langId5" />:</div>
				<div class="cell-text">
					<s:select label="默认语言" name="restBean.langId5" list="langList" listKey="langId" listValue="description" cssClass="w240" disabled="true" />
				</div>
				<div class="cell-desc"></div>
			</div>
		</s:if>
		<%-- 描述 --%>
		<div class="row">
			<div class="cell-label"><s:text name="admin.restList.description" />:</div>
			<div class="cell-text">
				<s:textarea name="restBean.description" cssClass="w240" />
			</div>
		</div>
		<%-- 备注 --%>
		<div class="row">
			<div class="cell-label"><s:text name="admin.restList.remark" />:</div>
			<div class="cell-text">
				<s:textarea name="restBean.remark" cssClass="w240" />
			</div>
		</div>
		<div class="row">
			<div class="cell-label"></div>
			<div class="cell-button">
				<s:submit name="save" method="save" key="common.button.save" cssClass="button3" />
			</div>
		</div>
	</div>
</s:form>